//
//  GKZYLoginUserInfoEntity.m
//  GKZY_CLASS
//
//  Created by KwokChun Cheung on 15/12/7.
//  Copyright © 2015年 eenet. All rights reserved.
//

#import "GKZYLoginUserInfoEntity.h"

@implementation GKZYLoginUserInfoEntity
@synthesize sid;
@synthesize name;
@synthesize studentNo;
@synthesize idType;
@synthesize idNo;
@synthesize sex;
@synthesize header;
@synthesize ee;
@synthesize phone;
@synthesize email;
@synthesize pycc;
@synthesize majorId;
@synthesize major;
@synthesize status;
@synthesize auditStatus;
@synthesize token;
//@synthesize teachingClassName;
//@synthesize birthday;

- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if (self){
        sid = [aDecoder decodeObjectForKey:@"sid"];
        name = [aDecoder decodeObjectForKey:@"name"];
        studentNo = [aDecoder decodeObjectForKey:@"studentNo"];
        idType = [aDecoder decodeObjectForKey:@"idType"];
        idNo = [aDecoder decodeObjectForKey:@"idNo"];
        header = [aDecoder decodeObjectForKey:@"header"];
        ee = [aDecoder decodeObjectForKey:@"ee"];
        phone = [aDecoder decodeObjectForKey:@"phone"];
        email = [aDecoder decodeObjectForKey:@"email"];
        majorId = [aDecoder decodeObjectForKey:@"majorId"];
        status = [aDecoder decodeObjectForKey:@"status"];
        auditStatus = [aDecoder decodeObjectForKey:@"auditStatus"];
        token = [aDecoder decodeObjectForKey:@"token"];
//        teachingClassName = [aDecoder decodeObjectForKey:@"teachingClassName"];
//        birthday = [aDecoder decodeObjectForKey:@"birthday"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:sid forKey:@"sid"];
    [aCoder encodeObject:name forKey:@"name"];
    [aCoder encodeObject:studentNo forKey:@"studentNo"];
    [aCoder encodeObject:idType forKey:@"idType"];
    [aCoder encodeObject:idNo forKey:@"idNo"];
    [aCoder encodeObject:header forKey:@"header"];
    [aCoder encodeObject:ee forKey:@"ee"];
    [aCoder encodeObject:phone forKey:@"phone"];
    [aCoder encodeObject:email forKey:@"email"];
    [aCoder encodeObject:majorId forKey:@"majorId"];
    [aCoder encodeObject:status forKey:@"status"];
    [aCoder encodeObject:auditStatus forKey:@"auditStatus"];
    [aCoder encodeObject:token forKey:@"token"];
//    [aCoder encodeObject:token forKey:@"teachingClassName"];
//    [aCoder encodeObject:token forKey:@"birthday"];
}

@end

